32cdbcaa7f6ca07e7cfeb6cdcbe6f987990dc9c4,src/edu/stanford/nlp/pipeline/AbstractTextAnnotationCreator.java,AbstractTextAnnotationCreator,createFromFile,#String#,15

Before Change


abstract public class AbstractTextAnnotationCreator implements AnnotationCreator {
  @Override
  public Annotation createFromFile(String filename) throws IOException {
    return create(IOUtils.getBufferedFileReader(filename));
  }

  @Override

After Change


abstract public class AbstractTextAnnotationCreator implements AnnotationCreator {
  @Override
  public Annotation createFromFile(String filename) throws IOException {
    Reader r = IOUtils.getBufferedFileReader(filename);
    Annotation anno = create(r);
    IOUtils.closeIgnoringExceptions(r);
    return anno;
  }

  @Override